package com.rzj.sys_lab_assistant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @program: sys_lab_assistant
 * @description: 部门实体类
 * @author: 作者
 * @create: 2021-06-29 09:19
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("department")
public class Department {

    private int dId; // 编号

    private String dName; // 部门名称

    private int typeId; // 部门类型id

    private int pid; // 上一级部门编号

    private Timestamp createTime; // 创建时间

    private Timestamp modifyTime; // 更新时间

    public Department(int dId, String dName, int typeId, int pid) {
        this.dId = dId;
        this.dName = dName;
        this.typeId = typeId;
        this.pid = pid;
    }
}
